home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 030a / ckcom4.zip / CKCOM.DOC < prev    next >
Text File  |  1991-07-20  |  5KB  |  138 lines

  1.                  CKCOM Release 4
  2.                    July 20, 1991
  3.  
  4.  Checks file size of COMMAND.COM for virus attack.
  5.  
  6.                 Copyright (c) 1991,
  7.                 Russell B. Hildreth
  8.                 All Rights Reserved
  9.  
  10.  
  11.  
  12. Background:
  13.  
  14. One of the easiest ways to spot a virus and prevent it from
  15. doing a great deal of damage is to check the size of the DOS
  16. COMMAND.COM file for changes.  Most virus programs
  17. attack COMMAND.COM.  After I was slimed by the Yankee
  18. Doodle virus a couple of months ago, I put together a little
  19. program that would compare the current size of
  20. COMMAND.COM with a known value, it's proper, unmodified
  21. size.  This program could be called from AUTOEXEC.BAT for
  22. a quick check each time the system is booted up.  It eventually
  23. became the more versatile version you see here.  This release
  24. allows the user to use CKCOM with *any* DOS version, by
  25. simply providing the proper file size of COMMAND.COM as
  26. a command line parameter.
  27.  
  28.  
  29.  
  30. Installation:
  31.  
  32. (1) Copy CKCOM to your boot drive (usually a hard drive), and
  33. put it somewhere convenient, such as a UTIL directory or your
  34. DOS directory.
  35.  
  36. (2) Figure out the proper file size of COMMAND.COM for
  37. your DOS version.  If you are fairly sure the version you are
  38. currently using is virus free, you can use it as a basis.  It's
  39. probably a better idea to check the size of the copy of
  40. COMMAND.COM on your original DOS distribution disks.
  41.  
  42. (3) Add a line to your AUTOEXEC.BAT file to call CKCOM. 
  43. Example:  C:\UTIL\CKCOM 47845.  This runs the copy of
  44. CKCOM located in the UTIL directory, and checks for the
  45. proper size of MSDOS 5.00.
  46.  
  47. (4) *Note:  If your copy of COMMAND.COM is located
  48. somewhere other then the root directory of the boot drive, your
  49. AUTOEXEC.BAT file probably contains a line such as SET
  50. COMSPEC=d:\path\file.  If you have such a line in your
  51. AUTOEXEC.BAT file, be sure to place the call to CKCOM
  52. *after* the SET COMSPEC line.  This is necessary because
  53. CKCOM uses the COMSPEC value to locate your copy of
  54. COMMAND.COM.
  55.  
  56.  
  57.  
  58. Sample COMMAND.COM file sizes:
  59.  
  60. MSDOS 3.30            25276
  61. IBMDOS 4.00           37637
  62. MSDOS 5.00            47845
  63. IBMDOS 5.00           47987
  64.  
  65. These sample sizes are provided only as a basic guideline.  Your
  66. DOS version may differ, and you should check the proper size
  67. on your original DOS distribution disks.
  68.  
  69.  
  70.  
  71. Operation:
  72.  
  73. Program operation is simple.  If COMMAND.COM is the
  74. proper file size, CKCOM flashes a quick COMMAND.COM
  75. Okay! message, and that's it.  On most machines it will go by so
  76. fast you probably won't notice it, and it surely won't bother you
  77. when everything is as it should be.
  78.  
  79. When something is wrong with COMMAND.COM, CKCOM
  80. will stop, warn you, and pause for a key press.  At that point it's
  81. a good idea to reboot from an uninfected floppy disk and run
  82. any one of a number of fine virus detection/clean up programs. 
  83. McAffee's SCAN is a good shareware detection program. 
  84. Central Point Software and Norton both now offer commercial
  85. anti-virus software.
  86.  
  87.  
  88.  
  89. Return values:
  90.  
  91. CKCOM returns the following values to DOS:
  92.  
  93. 0     Normal operation.  No errors, COMMAND.COM okay.
  94.  
  95. 1     Error.  Improper command line parameters.
  96.  
  97. 2     Error.  COMMAND.COM not found.  Check your
  98.       AUTOEXEC.BAT file to be sure that any SET
  99.       COMSPEC= call comes *before* the call to CKCOM.
  100.  
  101. 3     Possible virus.  COMMAND.COM is not the proper size. 
  102.       Check for a virus.  If there is no virus, check to be sure
  103.       the proper file size parameter is specified on the
  104.       command line.
  105.  
  106.  
  107.  
  108. Advantages:  Aside from the obvious, spotting a possible virus
  109. infection early (so weeks don't go by as every program on your
  110. hard drive is infected--this happened to me), the CKCOM
  111. program works well because it is NOT memory resident.  Once
  112. the COMMAND.COM file is checked, the CKCOM program
  113. removes itself from memory.  This way, you are left with the
  114. most DOS memory.
  115.  
  116.  
  117.  
  118. Comments/suggestions/complaints:
  119.  
  120. All are welcome.  I can be reached at the following addresses:
  121.  
  122.       CompuServe (preferred) EasyPlex: 71041,2132
  123.  
  124.       MCI Mail:  rhildreth
  125.  
  126.       US Mail:   Russell Hildreth
  127.                  PO BOX 72431
  128.                  DAVIS CA 95617-6431
  129.  
  130.  
  131. Registration:
  132.  
  133. Registration is only $15.  This is used by the author to offset the
  134. ever increasing costs of obtaining a higher education.  I'll also
  135. send you the latest release of the software.  Remember,
  136. shareware is not freeware.  If you use it, pay for it.  Please use
  137. the CKCOM.REG form when registering.
  138.